import request from '@/utils/request'
//用户贷款还款列表查询
export  function loanRepaymentList(query){
    return request({
        url:"/loan/manage/loanRepaymentList",
        method: 'post',
        data:query
    })
}
//用户贷款还款查看
export  function loanRepaymentView(id){
    return request({
        url:"/loan/manage/loanRepaymentManageList/"+id,
        method: 'get'
    })
}
//用户贷款还款录入
export  function loanRepaymentEntry(query){
    return request({
        url:"/loan/manage/loanRepaymentEntry",
        method: 'post',
        data:query
    })
}
//用户贷款还款确认
export  function loanRepaymentConfirm(query){
    return request({
        url:"/loan/manage/loanRepaymentConfirm",
        method: 'post',
        data:query
    })
}
//用户贷款提前还款列表查询
export  function loanEarlyRepaymentList(query){
    return request({
        url:"/loan/manage/loanEarlyRepaymentList",
        method: 'post',
        data:query
    })
}
//用户贷款提前还款提交
export  function loanEarlyRepayEntry(query){
    return request({
        url:"/loan/manage/loanEarlyRepayEntry",
        method: 'post',
        data:query
    })
}
//用户贷款提前还款确认
export  function loanEarlyRepayConfirm(query){
    return request({
        url:"/loan/manage/loanEarlyRepayConfirm",
        method: 'post',
        data:query
    })
}
//用户贷款提前还款详细
export  function loanEarlyRepay(id){
    return request({
        url:"/loan/manage/loanEarlyRepay/"+id,
        method: 'get'
    })
}
//用户贷款保后检查查询
export  function loanInspectList(query){
    return request({
        url:"/loan/userLoanInspect/list",
        method: 'post',
        data:query
    })
}
//用户贷款保后检查附件上传
export  function loanInspectUpload(){
    return request({
        url:"/loan/userLoanInspect/uploadFile",
        method: 'post'
    })
}
//用户贷款保后检查新增
export  function loanInspectAdd(query){
    return request({
        url:"/loan/userLoanInspect/add",
        method: 'post',
        data:query
    })
}
//用户贷款保后检查查看详情
export  function loanInspectQuery(id){
    return request({
        url:"/loan/userLoanInspect/query/"+id,
        method: 'get'
    })
}
//用户贷款保后检查查询个人基本数据
export  function loanInspectQueryInfo(query){
    return request({
        url:"/loan/userLoanInspect/queryLoanInspectInfo",
        method: 'post',
        data:query
    })
}
//用户贷款保后预警查询列表
export  function loanWarnList(query){
    return request({
        url:"/loan/userLoanWarn/list",
        method: 'post',
        data:query
    })
}
//用户贷款保后预警查询详细
export  function loanWarnQuery(id){
    return request({
        url:"/loan/userLoanWarn/query/"+id,
        method: 'get'
    })
}
//用户贷款保后预警新增
export  function loanWarnAdd(query){
    return request({
        url:"/loan/userLoanWarn/add",
        method: 'post',
        data:query
    })
}
//用户贷款保后预警修改
export  function loanWarnUpdate(query){
    return request({
        url:"/loan/userLoanWarn/update",
        method: 'post',
        data:query
    })
}
//用户贷款保后预警修改状态
export  function loanWarnUpdateState(id,state){
    return request({
        url:`/loan/userLoanWarn/${id}/state/${state}`,
        method: 'post'
    })
}
//用户贷款保后预警删除
export  function loanWarnDel(id){
    return request({
        url:`/loan/userLoanWarn/${id}`,
        method: 'delete'
    })
}
//用户贷款保后结项列表查询
export  function loanClosingList(query){
    return request({
        url:"/loan/manage/loanClosingList",
        method: 'post',
        data:query
    })
}
//用户贷款保后结项提交
export  function loanClosing(query){
    return request({
        url:"/loan/manage/loanClosing",
        method: 'post',
        data:query
    })
}
//获取银行卡信息
export  function bankCardDetail(id){
    return request({
        url:"/userBankCard/detail/"+id,
        method: 'post',
    })
}